package com.gzc.just.play.last.war.gateserver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import com.gzc.just.play.last.war.gateserver.handler.*;

/**
 * Gate Server应用启动类（重构版）
 * 使用虚拟线程处理框架
 */
@SpringBootApplication
@Import({
    GateNettyServer.class,
    ClientConnectionHandler.class,
    SimpleLoginHandler.class
})
public class GateServerApplication {
    private static final Logger log = LoggerFactory.getLogger(GateServerApplication.class);

    public static void main(String[] args) {
        log.info("Starting Gate Server Application with Virtual Thread Framework...");
        SpringApplication.run(GateServerApplication.class, args);
        log.info("Gate Server Application started successfully with Virtual Thread Framework");
    }
}
